package com.neo.entity;

import java.io.Serializable;

import com.neo.enums.UserSexEnum;

public class UserEntity implements Serializable
{
    private static final long serialVersionUID = 1L;
    
    private Long id;
    
    private String userName;
    
    private String passWord;
    
    private UserSexEnum userSex;
    
    private String nickName;
    
    public UserEntity()
    {
        super();
    }
    
    public UserEntity(String userName, String passWord, UserSexEnum userSex)
    {
        super();
        this.passWord = passWord;
        this.userName = userName;
        this.userSex = userSex;
    }
    
    public Long getId()
    {
        return id;
    }
    
    public void setId(Long id)
    {
        this.id = id;
    }
    
    public String getUserName()
    {
        return userName;
    }
    
    public void setUserName(String userName)
    {
        this.userName = userName;
    }
    
    public String getPassWord()
    {
        return passWord;
    }
    
    public void setPassWord(String passWord)
    {
        this.passWord = passWord;
    }
    
    public UserSexEnum getUserSex()
    {
        return userSex;
    }
    
    public void setUserSex(UserSexEnum userSex)
    {
        this.userSex = userSex;
    }
    
    public String getNickName()
    {
        return nickName;
    }
    
    public void setNickName(String nickName)
    {
        this.nickName = nickName;
    }
    
    @Override
    public String toString()
    {
        // TODO Auto-generated method stub
        return "userName " + this.userName + ", pasword " + this.passWord + "sex " + userSex.name();
    }
}